﻿using System;
using Dimas.Framework.Interface;
using Dimas.Portal.Tests.Infrastraction;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StructureMap;

namespace Dimas.Portal.Tests
{
    [TestClass]
    public class UnitTestSample : BaseUnitTest
    {
        [TestMethod]
        public void TestBaseSessionContextContainerSampleSuccess()
        {
            var sessionContext=ObjectFactory.GetInstance<IBaseSessionContextContainer>();
            Assert.AreEqual(sessionContext.userName, "dima");
        }


        [TestMethod]
        public void TestBaseSessionContextContainerSampleFail()
        {
            var sessionContext = ObjectFactory.GetInstance<IBaseSessionContextContainer>();
            Assert.AreNotEqual(sessionContext.userName, "vasia");
        }
    }
}
